package nsfs

func AlignDownUint64Uint(value uint64, alignment uint) uint64 {
	return value - value%uint64(alignment)
}

func AlignUpUint64Uint(value uint64, alignment uint) uint64 {
	return AlignDownUint64Uint(value+uint64(alignment)-1, alignment)
}

func AlignUpIntUint(value int, alignment uint) int32 {
	return int32(AlignUpUint64Uint(uint64(value), alignment))
}
